package com.fw.service.persistence.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.fw.service.persistence.dto.BOUserLogin;

public interface BOUserLoginDAO extends JpaRepository<BOUserLogin, Long>, JpaSpecificationExecutor<BOUserLogin> {

    @Query("select t from BOUserLogin t where t.userId = :userId")
    public BOUserLogin findByUserId(@Param("userId") Long userId);

}
